package com.bci.pwtz.task.thread;

import com.bci.pwtz.common.PwtzConstants;
import com.bci.pwtz.common.util.SpringUtil;
import com.bci.pwtz.service.CompanyService;

public class ClearVIPCompanyThread extends BaseThread
{
    public ClearVIPCompanyThread()
    {
        interval = PwtzConstants.CLEAR_COMPANY_VIP_INTERVAL * 60;
        threadName = "过期付费公司到期状态变更任务";
    }
    
    @Override
    public void doWork() throws Exception
    {
        CompanyService companyService = (CompanyService)SpringUtil.getBean("companyService");
        companyService.updateVipExpireStatus();
    }
}
